package com.edu.service;

import com.edu.bo.PaperGengerateVO;
import com.edu.bo.TypeTotalVO;
import com.edu.component.PageBean;
import com.edu.component.QueryParam;
import com.edu.entity.Paper;
import com.edu.entity.PaperQuestion;

import java.util.List;
import java.util.Map;

public interface PaperService {
    void savePaper(Paper paper);
    void updatePaper(Paper paper);
    void deletePaper(Integer id);
    PageBean listPage(QueryParam param);

    void diyPaperQuestion(PaperQuestion paperQuestion);
    List<Paper> queryPaper();
    List<PaperQuestion> queryQuestionByPaperId(
            Integer paperId);
    PaperGengerateVO previewPaper(Integer paperId);

    void randomPaperQuestion(Map map);
    List<TypeTotalVO> queryTypeTotal();
    List<Paper> queryAll();
}


